package edu.je.history.Mapper;

import edu.je.history.Model.HistoryInfo;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface HistoryInfoMapper {
    int insert(HistoryInfo record);

    int insertSelective(HistoryInfo record);

    List<HistoryInfo> getRecentlyHistory(Integer userId, int defaultCounts);

    HistoryInfo getById(Integer userId);

    void update(HistoryInfo info);

    HistoryInfo getByIdAndCompany(int userId, int companyId);

    int deleteByIdAndCompany(int userId, int companyId);
}